package com.bwie.auth.controller;

import com.bwie.auth.remote.UserRemote;
import com.bwie.auth.service.AuthUserService;
import com.bwie.common.domain.request.UserRequest;
import com.bwie.common.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @className: UserController
 * @Description: TODO
 * @version: v1.８.0
 * @author: 张雨乐
 */
@CrossOrigin
@RestController
public class UserController {
    @Autowired
    private AuthUserService authUserService;
    /**
     * 登录
     * @param userRequest
     * @return
     */
    @PostMapping("login")
    public Result login(@RequestBody UserRequest userRequest){
        return authUserService.login(userRequest);
    }


}
